﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masters/AdminSchedule.master" AutoEventWireup="true" CodeFile="Flight.aspx.cs" Inherits="Pages_Flight" %>

<asp:Content ID="Content2" ContentPlaceHolderID="cphContent" Runat="Server">
	<asp:Repeater runat="server" ID="rptRoutes">
		<HeaderTemplate>
			<table style="width: 500px; margin: 4px auto;">
				<tr>
					<th>Id</th>
					<th>Маршрут</th>
					<th>Автобус</th>
					<th>Расписание</th>
				</tr>
		</HeaderTemplate>
		<ItemTemplate>
				<tr>
					<td style="text-align: center;"><%# Eval("Id") %></td>
					<td style="text-align: center;"><%# Eval("route.Name") %></td>
					<td style="text-align:center;"><%# Eval("bus.Name")%></td>
					<td style="text-align:center;"></td>
				</tr>
		</ItemTemplate>
		<FooterTemplate>
			</table>
		</FooterTemplate>
	</asp:Repeater>
	<a href='<%= ResolveUrl("~/Pages/FlightEdit.aspx") %>'>Добавить новый</a>
</asp:Content>

